@import './variables.scss';
@import './transition.scss';


/* 全局样式 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: $text-color-primary;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

#app {
  height: 100%;
}

a {
  color: $primary-color;
  text-decoration: none;
  &:hover, &:focus {
    color: lighten($primary-color, 10%);
    // color: scale-color($primary-color, $lightness: 10%);
  }
}

.clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: $border-color-lighter;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: $border-color-base;
  border-radius: 3px;
  &:hover {
    background: $border-color-light;
  }
}

/* 常用工具类 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.pointer {
  cursor: pointer;
}

/* 间距类 */
.m-0 { margin: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mr-10 { margin-right: 10px !important; }
.mb-10 { margin-bottom: 10px !important; }
.ml-10 { margin-left: 10px !important; }
.p-0 { padding: 0 !important; }
.pt-10 { padding-top: 10px !important; }
.pr-10 { padding-right: 10px !important; }
.pb-10 { padding-bottom: 10px !important; }
.pl-10 { padding-left: 10px !important; }

/* 响应式隐藏类 */
@media (max-width: $screen-xs) {
  .hidden-xs {
    display: none !important;
  }
}

@media (max-width: $screen-sm) {
  .hidden-sm {
    display: none !important;
  }
}

@media (max-width: $screen-md) {
  .hidden-md {
    display: none !important;
  }
}

@media (max-width: $screen-lg) {
  .hidden-lg {
    display: none !important;
  }
}
